package com.xu.demo.proxyPattern;

/**
 * JDK动态代理测试类
 */
public class JavaDynamicProxy {

    public static void main(String[] args) {
        RealShopping realShopping = new RealShopping();
        Shopping dynamicProxy = DynamicShoppingProxy.createProxy(realShopping);
        dynamicProxy.buy();
    }
}
